package com.leyou.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnum {

    BRAND_NOT_FOUND(404, "品牌没查到"),
    CATEGORY_NOT_FOUND(404, "商品分类没查到"),
    SPEC_GROUP_NOT_FOUND(404, "商品规格组没查到"),
    SPEC_PARAM_NOT_FOUND(404, "商品规格参数没查到"),
    GOODS_NOT_FOUND(404, "商品没查到"),
    BRAND_SAVE_ERROR(500, "保存品牌失败"),
    CATEGORY_SAVE_ERROR(500, "保存商品分类失败"),
    GOODS_SAVE_ERROR(500, "保存商品失败"),
    UPLOAD_FILE_ERROR(500, "文件上传失败"),
    INVALID_FILE_TYPE(400, "无效的文件类型"),
    ;

    private Integer code;

    private String msg;

}
